package com.jilujia.domain.question;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.jilujia.framework.domain.PoEntity;

/**
 * A user who can book hotels.
 */
@Entity
@Table(name = "TB_R_QUESTION_TAG")
public class QuestionTagRelation implements PoEntity<Long>, Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3652559447682574722L;

	private Long id;

	private Long questionId;

	private Long tagId;

	public QuestionTagRelation() {
	}

	public QuestionTagRelation(Long questionId, Long tagId) {
		this.setQuestionId(questionId);
		this.setTagId(tagId);
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@NotNull
	public Long getQuestionId() {
		return questionId;
	}

	public void setQuestionId(Long questionId) {
		this.questionId = questionId;
	}

	@NotNull
	public Long getTagId() {
		return tagId;
	}

	public void setTagId(Long tagId) {
		this.tagId = tagId;
	}

}
